﻿using System.Web;
using System.Web.Mvc;
using System.Web.Security;

namespace MezmurStore2.Controllers
{
    public class BaseController : Controller
    {
        protected override void Initialize(System.Web.Routing.RequestContext requestContext)
        {
            base.Initialize(requestContext);
            //this._currentUser = requestContext.HttpContext.User.Identity as FormsIdentity;
            //if (this._currentUser == null)
            //{
            //    RedirectToAction("LogOn", "Account");
            //}
        }

        public MembershipUser CurrentUser
        {
            get
            {
                return Membership.GetUser();
            }
        }
    }
}
